/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - Oper1
 * <p>Powered by webrx On 2021-07-27 14:29:04
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Oper2 {
    public static void main(String[] args) {
        //算术运算符 % /
        int a = Integer.valueOf(args[0]);
        int b = Integer.valueOf(args[1]);
        //判断语句
        if (a % b == 0) {
            System.out.printf("%d ÷ %d = %d %n", a, b, a / b);
        } else {
            System.out.printf("%d ÷ %d = %d …… %d %n", a, b, a / b, a % b);
        }
    }
}
